package com.wang.learn.cloudproduct.feign;

import com.wang.learn.cloudproduct.hystrix.ProductClientHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author www.itdream.site
 * @description
 * @create 2021-03-24 17:23
 */
@Component
@FeignClient(value = "cloud-order-service", fallback = ProductClientHystrix.class)
public interface ProductFeignService {

    @GetMapping(value = "/test/{str}")
    public String getPaymentById(@PathVariable("str") String str);

}
